package UDP.sever3;

import java.io.IOException;
import java.net.*;

public class send {
    public static void main(String[] args) throws IOException {
        DatagramSocket ds = new DatagramSocket();
         String s = "hello world";
         byte [] a = s.getBytes();
        InetAddress address = InetAddress.getByName("255.255.255.255");
        int port = 10000;
        DatagramPacket dp = new DatagramPacket(a,a.length,address,port);
        ds.send(dp);
        ds.close();
    }
}
